<#include "common/main.html">
<#macro bodyId>statistics-agent</#macro>
<#macro content>


<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ty-common-page">
    <h1 class="page-header">运营成本核算报表
<!--         <div class="btns"> -->
<!--             <a class="btn btn-success" href="${rc.contextPath}/loan/add">新增申贷</a> -->
<!--         </div> -->
    </h1>
    <div class="tool-bar">
        <div class="filter">
            <form action="" method="get" class="J_filterForm" id="statistics-form">
                <div class="form-group">
                    <div class="col-sm-11">
                        
                        <div class="col4">
                            <span class="label-text">开始时间：</span>
                            <input class="form-control J_startDate" name="startTimeStr" value="${queryDto.startTimeStr}" />
                        </div>
                        <div class="col4">
                            <span class="label-text">结束时间：</span>
                            <input class="form-control J_endDate" name="endTimeStr" value="${queryDto.endTimeStr}" />
                        </div>
                       
                        <button type="submit" class="btn btn-success J_getExcel" data-action="${rc.contextPath}/statistic/costExport">导出Excel</button>
                        <button type="submit" class="btn btn-success J_search" data-action="${rc.contextPath}/statistic/costList">查询</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="table-responsive">
        <table class="table ac-table table-hover">
            <thead>
            <tr>
                <th>日期</th>
                <th>注册用户数</th>
                <th>核验次数</th>
                <th>有效注册用户数</th>
                <th>红包提现(总)金额</th>
                <th>渠道经理提现(总)</th>
                <th>达人奖金提现(总)</th>
                <th>单个有效注册成本</th>
            </tr>
            </thead>
            <tbody>

            <tr>
                <td>${currentTotalDto.dayStr}</td>
                <td>${currentTotalDto.totalCount}</td>
                <td>${currentTotalDto.checkCount}</td>
                <td>${currentTotalDto.effectiveCount}</td>
                <td>${currentTotalDto.award}</td>
                <td>${currentTotalDto.cash}</td>
                <td>${currentTotalDto.shareCash}</td>
                <td>${currentTotalDto.unitCost}</td>
            </tr>

            </tbody>
        </table>
    </div>

    <div class="table-responsive">
        <table class="table ac-table table-hover">
            <thead>
            <tr>
                <th>日期</th>
                <th>注册用户数</th>
                <th>核验次数</th>
                <th>有效注册用户数</th>
                <th>红包提现金额</th>
                <th>渠道经理提现</th>
                <th>达人奖金提现</th>
                <th>单个有效注册成本</th>
            </tr>
            </thead>
            <tbody>
            <#list costList as dto>
            <tr>
                <td>${dto.dayStr}</td>
                <td>${dto.totalCount}</td>
                <td>${dto.checkCount}</td>
                <td>${dto.effectiveCount}</td>
                <td>${dto.award}</td>
                <td>${dto.cash}</td>
                <td>${dto.shareCash}</td>
                <td>${dto.unitCost}</td>
            </tr>
            </#list>
            </tbody>
        </table>
    </div>
    <!--<#include "common/page.html">-->
</div>

<script>
    var config = {

    }
</script>

</#macro>

<script>
// 	$("[name='provinceId']").change(function () {
// 		$me = $(this);
// 		$me.parents("form").find("[name='cityId']").val("");
// 		$me.parents("form").find("[name='regionId']").val("");
// 		$me.parents("form").submit();
// 	});

// 	$("[name='cityId']").change(function () {
// 		$me = $(this);
// 		$me.parents("form").find("[name='regionId']").val("");
// 		$me.parents("form").submit();
// 	});

// 	$("[name='regionId']").change(function () {
// 		$me = $(this);
// 		$me.parents("form").submit();
// 	});
</script>